home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 296_01.zip / SAMPL.C < prev    next >
C/C++ Source or Header  |  1993-04-01  |  658b  |  46 lines

  1. #include <stdio.h>
  2. typedef struct waldo { int i; float z; } FOOBAR;
  3. double x;
  4.  
  5. extern something();   /* should be elided by the tool */
  6. char *strcat();
  7.  
  8. main(argc,argv)
  9.     int argc;
  10.     char *argv[];
  11.     {
  12.     float x = 2.0;
  13.     FOOBAR y;
  14.     extern double waldo();
  15.  
  16.     func1(x,y);
  17.     noargs();
  18.     weird();
  19.     }
  20.  
  21. char *strcmp();
  22.  
  23. double func1(x,y,z,q,r)
  24.     float x;
  25.     FOOBAR y,z;
  26.     struct waldo *q,r;
  27.     {
  28.     }
  29.  
  30. int noargs()
  31.     {
  32.     }
  33.  
  34. weird()
  35.     {
  36.     /* no args and defaults to int type func */
  37.     }
  38.  
  39. double *
  40. crazy(q)
  41.     int ***q;
  42.     {
  43.     /* The func type is on the previous line! */
  44.     }
  45.  
  46.